<?php /* SVN: $Id: index.ctp 12757 2010-07-09 15:01:40Z jayashree_028ac09 $ */ ?>
	<?php if(!empty($projects)): ?>
            <?php
				foreach($projects as $project):
                  $project_image = '';
					if(!empty($project['Attachment'])):
						$project_image = $this->Html->showImage('Project', $project['Attachment'], array('dimension' => 'big_thumb', 'alt' => sprintf(__l('[Image: %s]'), $this->Html->cText($project['Project']['name'], false)), 'title' => $this->Html->cText($project['Project']['name'], false)));
					endif;
					$project_image = (!empty($project_image)) ? '<p>'.$project_image.'</p>':'';

					echo $this->Rss->item(array() , array(
                            'title' => $project['Project']['name'],
                            'link' => array(
                                'controller' => 'projects',
                                'action' => 'view',
                                $project['Project']['slug']
                            ) ,
                          'description' => $project_image.'<p>'.$project['Project']['short_description'].'</p>'
                        ));
            	endforeach;
			?>
    <?php endif; ?>	
	